/**
 * 
 */
package com.gkwave.action.service;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.gkwave.module.bean.BloodRequirementBean;
import com.gkwave.module.dao.HealthCareDAO;

/**
 * @author Administrator
 *
 */
public class BloodRequirementService extends BaseService {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7041736003527663596L;

	/**
	 * 
	 */
	public BloodRequirementService() {
		// TODO Auto-generated constructor stub
	}

	/* (non-Javadoc)
	 * @see com.gkwave.action.service.BaseService#procesRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	@Override
	public void procesRequest(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		HealthCareDAO dao = new HealthCareDAO();
		BloodRequirementBean bean = dao.getBloodRequirementDetailList();
		xmlResponse = "No data available";
		if(bean!=null){
			xmlResponse = bean.marsel(bean);
		}
		out = response.getWriter();
		System.out.println(xmlResponse);
		out.println(xmlResponse);
	}

}
